Optimal. Leaf size=21 \[ -\text {Chi}\left (\frac {b}{x}\right ) \sinh (a)-\cosh (a) \text {Shi}\left (\frac {b}{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5426, 5425,
5424} \begin {gather*} \sinh (a) \left (-\text {Chi}\left (\frac {b}{x}\right )\right )-\cosh (a) \text {Shi}\left (\frac {b}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 5424
Rule 5425
Rule 5426
Rubi steps
\begin {align*} \int \frac {\sinh \left (a+\frac {b}{x}\right )}{x} \, dx &=\cosh (a) \int \frac {\sinh \left (\frac {b}{x}\right )}{x} \, dx+\sinh (a) \int \frac {\cosh \left (\frac {b}{x}\right )}{x} \, dx\\ &=-\text {Chi}\left (\frac {b}{x}\right ) \sinh (a)-\cosh (a) \text {Shi}\left (\frac {b}{x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 21, normalized size = 1.00 \begin {gather*} -\text {Chi}\left (\frac {b}{x}\right ) \sinh (a)-\cosh (a) \text {Shi}\left (\frac {b}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.78, size = 27, normalized size = 1.29
method | result | size |
risch | \(-\frac {{\mathrm e}^{-a} \expIntegral \left (1, \frac {b}{x}\right )}{2}+\frac {{\mathrm e}^{a} \expIntegral \left (1, -\frac {b}{x}\right )}{2}\) | \(27\) |
meijerg | \(-\cosh \left (a \right ) \hyperbolicSineIntegral \left (\frac {b}{x}\right )-\frac {\sqrt {\pi }\, \sinh \left (a \right ) \left (\frac {2 \hyperbolicCosineIntegral \left (\frac {b}{x}\right )-2 \ln \left (\frac {b}{x}\right )-2 \gamma }{\sqrt {\pi }}+\frac {2 \gamma -2 \ln \left (x \right )+2 \ln \left (i b \right )}{\sqrt {\pi }}\right )}{2}\) | \(62\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 24, normalized size = 1.14 \begin {gather*} \frac {1}{2} \, {\rm Ei}\left (-\frac {b}{x}\right ) e^{\left (-a\right )} - \frac {1}{2} \, {\rm Ei}\left (\frac {b}{x}\right ) e^{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 39, normalized size = 1.86 \begin {gather*} -\frac {1}{2} \, {\left ({\rm Ei}\left (\frac {b}{x}\right ) - {\rm Ei}\left (-\frac {b}{x}\right )\right )} \cosh \left (a\right ) - \frac {1}{2} \, {\left ({\rm Ei}\left (\frac {b}{x}\right ) + {\rm Ei}\left (-\frac {b}{x}\right )\right )} \sinh \left (a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.61, size = 17, normalized size = 0.81 \begin {gather*} - \sinh {\left (a \right )} \operatorname {Chi}\left (\frac {b}{x}\right ) - \cosh {\left (a \right )} \operatorname {Shi}{\left (\frac {b}{x} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 44 vs.
\(2 (21) = 42\).
time = 0.44, size = 44, normalized size = 2.10 \begin {gather*} \frac {b {\rm Ei}\left (a - \frac {a x + b}{x}\right ) e^{\left (-a\right )} - b {\rm Ei}\left (-a + \frac {a x + b}{x}\right ) e^{a}}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.05 \begin {gather*} -\mathrm {sinh}\left (a\right )\,\mathrm {coshint}\left (\frac {b}{x}\right )-\mathrm {cosh}\left (a\right )\,\mathrm {sinhint}\left (\frac {b}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________